package com.hanthink.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.hanthink.common.annotation.Excel;
import com.hanthink.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 质量称重对象 EM_XFLH
 * 
 * @author tzy
 * @date 2023-09-04
 */
public class EmXflh extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 设备码 */
    @Excel(name = "设备码")
    private String equipKey;

    /** 左工位 */
    @Excel(name = "左工位")
    private String leftStation;

    /** 右工位 */
    @Excel(name = "右工位")
    private String rightStation;

    /** 共用部分 */
    @Excel(name = "共用部分")
    private String commonParts;

    /** 辅助设备 */
    @Excel(name = "辅助设备")
    private String auxiliaryEquip;

    @Excel(name = "创建人")
    private String createdBy;
    @Excel(name = "创建时间",dateFormat="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setEquipKey(String equipKey) 
    {
        this.equipKey = equipKey;
    }

    public String getEquipKey() 
    {
        return equipKey;
    }

    public void setLeftStation(String leftStation)
    {
        this.leftStation = leftStation;
    }

    public String getLeftStation()
    {
        return leftStation;
    }

    public void setRightStation(String rightStation)
    {
        this.rightStation = rightStation;
    }

    public String getRightStation()
    {
        return rightStation;
    }

    public void setCommonParts(String commonParts)
    {
        this.commonParts = commonParts;
    }

    public String getCommonParts()
    {
        return commonParts;
    }

    public void setAuxiliaryEquip(String auxiliaryEquip)
    {
        this.auxiliaryEquip = auxiliaryEquip;
    }

    public String getAuxiliaryEquip()
    {
        return auxiliaryEquip;
    }


    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("equipKey", getEquipKey())
            .append("createTime", getCreateTime())
            .append("leftStation", getLeftStation())
            .append("rightStation", getRightStation())
            .append("commonParts", getCommonParts())
                .append("auxiliaryEquip", getAuxiliaryEquip())
            .toString();
    }
}
